<include file="Inc/in_head" />
<nav class="navbar navbar-default">
	<div class="container">
	    <div class="navbar-header"> 
	      <a class="navbar-brand" href="#">Jaguar后台管理系统</a>
	    </div>
		
	    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
	      <ul class="nav navbar-nav">
	        <li><a href="/Admin/User/index">用户管理<span class="sr-only">(current)</span></a></li>
	        <li class="active"><a href="/Admin/Active/index">活动管理</a></li>
	      </ul> 
	      <ul class="nav navbar-nav navbar-right">
	        <li><a href="#">退出</a></li>
	      </ul>
	    </div>
	</div>
</nav>

<div class="container"> 
<div class="panel panel-default">
  <div class="panel-body">
   <a class="btn btn-primary btn-sm pull-right" href="/index.php/Admin/Active/edit"><span class="glyphicon glyphicon-plus"></span> 添加活动</a>
   
   活动管理
  </div>
</div>
<div class="table-responsive">
      <table class="table table-bordered" style="margin-bottom: 0px;">
        <thead>
          <tr>
            <th>#</th>
           
            <th>所在城市</th>
            <th>坐标</th>
            <th>时间</th> 
            <th>状态</th> 
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
<foreach name="list" item="vo" >
          <tr>
            <th scope="row">{$vo.id}</th>
            <td>{$vo.city}</td>
            <td>x:{$vo.p_x} - y:{$vo.p_y}</td>
            <td>{$vo.starttime} ~ {$vo.endtime}</td>
            <td>{$vo.status}</td>
            <td> 
			<div class="btn-group" role="group">
			  <a type="button" href="/index.php/Admin/Active/edit/id/{$vo.id}" class="btn btn-sm btn-primary">修改</a>
			  <a type="button" href="/index.php/Admin/Active/del/id/{$vo.id}"  class="btn btn-sm btn-danger">删除</a> 
			</div>
			</td>
          </tr>
</foreach>
        </tbody>
      </table>
    </div>
	{$page}
</div>
<include file="Inc/in_foot" />